﻿using System;
using System.Collections.Generic;

namespace Messhall.Application.Dto.Permissions.Responses;

public class PermissionDetailsResponse : ResponseBase
{
    /// <summary>
    /// 父级权限
    /// </summary>
    public Guid ParentId { get; set; }

    /// <summary>
    /// 权限唯一CODE代码
    /// </summary>
    public string Code { get; set; }

    /// <summary>
    /// 权限名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// URL规则
    /// </summary>
    public string Url { get; set; }

    /// <summary>
    /// 图标
    /// </summary>
    public string Icon { get; set; }

    /// <summary>
    /// 备注信息
    /// </summary>
    public string Remark { get; set; }

    /// <summary>
    /// 权限按钮
    /// </summary>
    public List<PermissionAuthorityResponse> Authority { get; set; } = new();
}